@import "reset.scss";

.cart-header{
    font-size: 12px;
    border-bottom: 2px solid #ff6700;
    background: #fff;
    color: #b0b0b0;
    position: relative;
    height: 100px;

    .container{
        @include container();

        .header-logo{
            width: 93px;
            margin-top: 26px;
            float: left;

            a{
                position: relative;
                display: block;
                width: 48px;
                height:48px;

                img{
                    width: 100%;
                    height: 100%;
                }
            }
        }
        .header-title{
            height: 48px;
            float: left;
            margin-top: 26px;

            h2{
                float: left;
                line-height: 48px;
                margin-bottom: 0;
                font-size: 28px;
                color: #424242;
            }
            p{
                float: left;
                height: 20px;
                line-height: 20px;
                margin-top: 20px;
                margin-left: 15px;
                color: #757575;
            }
        }
        .site-topbar{
            position: relative;
            float: right;
            height: 40px;
            line-height: 40px;
            margin-top: 30px;

            a{
                padding: 0 5px;
                text-align: center;
                float: left;
                color: #757575;

                &:hover{
                    color: #f60;
                }
            }
            span{
                float: left;
            }
        }
    }
}

.col{
    float: left;
    vertical-align: middle;
}
.col-check{
    width: 110px;
}
.col-img{
    width: 120px;
}
.col-name{
    width: 380px;
    text-align: left;
}
.col-price{
    width: 140px;
    padding-right: 18px;
    text-align: center;
    color: #424242;
}
.col-num{
    width: 150px;
    text-align: center;
    color: #424242;
}
.col-total{
    width: 120px;
    padding-right: 81px;
    text-align: right;
}
.col-action{
    width: 80px;
    text-align: center;
}

.mi-cart{
    padding: 38px 0;
    background-color: #f5f5f5;

    .container{
        @include container();

        .cart-container{
        
            .container-main{
                
                .empty-cart-wrap{

                    .empty-cart-top{
                        height: 273px;
                        padding-left: 558px;
                        margin: 65px 0 130px;
                        background: url(../images/cart-empty.png) no-repeat 124px 0;
                        color: #b0b0b0;
                        overflow: hidden;

                        .login-tip{
                            margin: 70px 0 0 0;
                            font-size: 36px;
                            font-weight: bold;
                        }
                        .login-desc{
                            margin: 0;
                            font-size: 20px;
                        }
                        .btn-primary{
                            margin-right: 10px;
                            margin-top: 20px;
                            width: 170px;
                            height: 48px;
                            line-height: 48px;
                            border: 1px solid #ff6700;
                            font-size: 14px;
                            text-align: center;
                            display: inline-block;
                            color: #ff6700;
                        }
                        .btn-login{
                            background-color: #ff6700;
                            color: #fff;
                        }
                    }
                }
            }
            #cartTable{
                background-color: #fff;
                width: 100%;
                thead{
                    height: 70px;
                    line-height: 70px;
                    padding-right: 26px;
                    color: #424242;

                    tr{
                        padding-right: 26px;

                        .check-all-box{

                            label{
                                .check-all{
                                    display: inline-block;
                                    width: 18px;
                                    height: 18px;
                                    line-height: 18px;
                                    border: 1px solid #e0e0e0;
                                    margin-left: 24px;
                                    font-size: 20px;
                                    text-align: center;
                                    vertical-align: middle;
                                    position: relative;
                                    top: -1px;
                                    cursor: pointer;
                                    color: #fff;
                                    border-color: #ff6700;
                                    background-color: #ff6700;
                                }
                            }
                        }
                    }
                }
                tbody{
                    display: block;

                    tr{
                        padding: 15px 26px 15px 0;
                        border-top: 1px solid #e0e0e0;
                        display: flex;
                        align-items: center;
                        line-height: 85px;
                        height: 85px;
                        
                        td{

                            .check-one{
                                display: inline-block;
                                width: 18px;
                                height: 18px;
                                line-height: 18px;
                                border: 1px solid #e0e0e0;
                                margin-left: 33px;
                                font-size: 20px;
                                text-align: center;
                                vertical-align: middle;
                                position: relative;
                                top: -1px;
                                cursor: pointer;
                                color: #fff;
                                border-color: #ff6700;
                                background-color: #ff6700;
                            }

                            
                            img{
                                width: 80px;
                                height: 80px;
                            }
                        }
                        .col-img{
                            width: 80px;
                            padding-right: 40px;
                            height: 80px;
                        }
                        .col-name{
                            line-height: 85px;
                            margin-top: 8px;
                            margin-bottom: 8px;
                            font-size: 18px;
                            font-weight: 400;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                            overflow: hidden;
                        }
                        .col-num{
                            width: 148px;
                            height: 38px;
                            border: 1px solid #e0e0e0;
                            text-align: center;
                            background-color: #fff;
                            position: relative;
                            zoom: 1;

                            span{
                                float: left;
                                width: 38px;
                                height: 38px;
                                line-height: 38px;
                                color: #757575;
                                font-size: 20px;
                                -webkit-transition: all .3s;
                                transition: all .3s;
                            }
                            input{
                                float: left;
                                width: 72px;
                                height: 38px;
                                line-height: 38px;
                                padding: 0;
                                border-width: 0;
                                color: #424242;
                                font-size: 16px;
                                text-align: center;
                            }
                        }
                        .col-total{
                            color: #ff6700;
                            font-size: 16px;
                        }
                    }
                }
            }
            .foot{
                margin-top: 20px;
                width: 100%;
                height: 50px;
                background-color: #fff;
                -webkit-transition: background .3s ease,top .3s ease;
                transition: background .3s ease,top .3s ease;
                position: relative;

                .fl{
                    float: left;
                    color: #757575;
                    line-height: 50px;
                    margin-left: 32px;
                }
                .selected{
                    float: left;
                    margin-left: 16px;
                    padding-left: 16px;
                    border-left: 1px solid #eee;
                    color: #757575;
                    line-height: 50px;

                    span{
                        color: #ff6700;
                    }
                }
                .total{
                    float: right;
                    padding-left: 13px;
                    color: #ff6700;
                    line-height: 50px;

                    span{
                        font-style: normal;
                        font-size: 30px;
                    }
                }
                .closing{
                    float: right;
                    width: 200px;
                    height: 48px;
                    line-height: 48px;
                    font-size: 18px;
                    margin-left: 50px;
                    vertical-align: top;
                    background: #ff6700;
                    border-color: #ff6700;
                    color: #fff;
                    text-align: center;
                }
            }
        }
    }
}